Skip to content

New update semantics for .. (recursion)#285

Merged
01mf02 merged 3 commits intomainfrom
recurse-update
Jun 30, 2025
Merged

New update semantics for .. (recursion)#285
01mf02 merged 3 commits intomainfrom
recurse-update

Conversation

@01mf02
Copy link
Owner

@01mf02 01mf02 commented May 29, 2025

This PR changes the semantics of .. on the left-hand side of updates.

# `.. |= f` expands to ...
def recurse: ., (.[]? | recurse); recurse |= f   # before
def recurse: (.[]? | recurse), .; recurse |= f   # after

This prevents stack overflows that could previously occur (#139, #235).

@01mf02 01mf02 merged commit e776b61 into main Jun 30, 2025
3 checks passed
@01mf02 01mf02 deleted the recurse-update branch June 30, 2025 06:26
@01mf02 01mf02 changed the title New update semantics for .. (recursion). New update semantics for .. (recursion) Jul 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant